home *** CD-ROM | disk | FTP | other *** search
/ Best of Shareware / Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso / mac / ZIPPED / WINDOWS / FILEUTIL / TLCPAK10.ZIP / SETUPPAK.BAT < prev    next >
DOS Batch File  |  1992-10-30  |  2KB  |  59 lines

  1. @echo off
  2. if "%1"=="" goto useage
  3. if "%2"=="" goto useage
  4. if "%3"=="" goto useage
  5. if exist %1\tlcpak1c.dll goto srcok
  6. echo Can not find source files
  7. goto done
  8.  
  9. :srcok
  10. md %2
  11. copy %1\tlcpak.exe %2
  12. if  exist %2\tlcpak.exe goto ok2
  13. echo Can not write to %2
  14. echo Create the destination directory and try again
  15. goto done
  16.  
  17. :ok2
  18. copy %1\tlcpak1c.dll %3
  19. if exist %3\tlcpak1c.dll goto dllok
  20. echo Can not copy to %3
  21. goto done
  22.  
  23. :dllok
  24. copy %1\tlcpres1.dll %3
  25. copy %1\tlcpak.hlp %3
  26. copy %1\pk386.pif %3
  27. copy %1\pkall.pif %3
  28. copy %1\read-pak.txt %2
  29. copy %1\reg-pak.txt %2
  30. if exist c:\windows\vbrun100.dll goto VBrunok
  31. if exist %3\vbrun100.dll goto VBrunok
  32. if exist c:\windows\system\vbrun100.dll goto VBrunok
  33. echo Your system does not appear to have the Microsoft Basic Run
  34. echo Time library, "VBRun100.DLL".
  35. echo This program will not operate without VBRun100.DLL.  It may
  36. echo be optained from Microsoft Bulletin board, Compuserve, or
  37. echo Software Engineering and Fabrication.  After you receive this 
  38. echo file, copy it to you System directory (probably C:\windows\system).
  39. goto done
  40. :VBRunOk
  41. echo TlcPak version 1.0 is now installed
  42. echo Please remember to register this program if you are going to
  43. echo continue to use it.
  44. echo Execute file named TLCpak.exe
  45. goto done
  46.  
  47. :useage
  48. echo Type 
  49. echo       SetUpPak.BAT FromPath ToPath SystemPath
  50. echo
  51. echo for example 
  52. echo SetUpPak.BAT a: d:\utility c:\windows\system
  53. echo will cause the program to install from the A: disk
  54. echo on to the D: drive using the UTILITY directory
  55. echo the windows system path is C:\WINDOWS\SYSTEM
  56. echo Note: no trailing slash after directory name.
  57. :done
  58. Pause Please press return to continue
  59.